import request from '@/utils/request.js'


//列表
export const Lists = (params) => {
    return request.get(`/message/getAll/${params}`)//发送请求
}

export const Add = (data) =>{
    return request.post("/message/add",data,{
        headers: {'Content-Type': 'application/json' }
    })
}
// 获取状态
export const getStatus = (data) =>{
    return request.get("/message/getStatus",{
        params:{
            id:data
        }
    });
}

// 获取组号
export const getGroups = (data)=>{
    return request.get("/message/group",{
        params:{
            userId:data
        }
    });
}
// 获取处理记录
export const getRecordList = (data)=> {
    return request.get(`/message/getRecord/${data}`)//发送请求
}

// 获取组成员
export const getMember = (data) =>{
    return request.post("/message/getMember",data,{
        headers: {'Content-Type': 'application/json' }
    })
}
